package com.weixiaodong.javabasic.冗余的ifelse的代替方式.工厂方式;

import com.weixiaodong.javabasic.冗余的ifelse的代替方式.枚举方式.PermissionEnum;
import com.weixiaodong.javabasic.冗余的ifelse的代替方式.枚举方式.RoleEnum;
import com.weixiaodong.javabasic.冗余的ifelse的代替方式.枚举方式.RoleOperation;

@SuppressWarnings("all")
public class NormalRole implements RoleOperation {

    private RoleEnum roleEnum;

    public NormalRole(RoleEnum roleEnum) {
        this.roleEnum = roleEnum;
    }

    @Override
    public String op() {
        return roleEnum.toString() + ": " + PermissionEnum.CCC_PERMISSION.toString();
    }
}
